package service;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import dao.UserDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService{
    Logger logger = LoggerFactory.getLogger(UserServiceImpl.class);

    @Autowired
    private UserDao userDao;

    @Override
    public void getUserByID(){
//        logger.info("UserServiceImpl:调用UserDao的getUserByID()方法");
          logger.error("UserServiceImpl:调用UserDao的getUserByID()方法");

        userDao.getUserByID();
    };
}